!function(){function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){return e(b[g][1][a]||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g1){if("number"==typeof(i=e({path:"/"},t.defaults,i)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}i.expires=i.expires?i.expires.toUTCString():"";try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(m){}r=o.write?o.write(r,n):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(String(n))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var f="";for(var s in i)i[s]&&(f+="; "+s,!0!==i[s]&&(f+="="+i[s]));return document.cookie=n+"="+r+f}n||(c={});for(var p=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,u=0;u=this.minClusterSize_&&a.setMap(null),this.updateIcon(),!0},e.prototype.getMarkerClusterer=function(){return this.markerClusterer_},e.prototype.getBounds=function(){for(var a,b=new google.maps.LatLngBounds(this.center_,this.center_),c=this.getMarkers(),d=0;a=c[d];d++)b.extend(a.getPosition());return b},e.prototype.remove=function(){this.clusterIcon_.remove(),this.markers_.length=0,delete this.markers_},e.prototype.getSize=function(){return this.markers_.length},e.prototype.getMarkers=function(){return this.markers_},e.prototype.getCenter=function(){return this.center_},e.prototype.calculateBounds_=function(){var a=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(a)},e.prototype.isMarkerInClusterBounds=function(a){return this.bounds_.contains(a.getPosition())},e.prototype.getMap=function(){return this.map_},e.prototype.updateIcon=function(){var a=this.map_.getZoom(),b=this.markerClusterer_.getMaxZoom();if(b&&a>b)for(var c,d=0;c=this.markers_[d];d++)c.setMap(this.map_);else{if(this.markers_.length0&&this.anchor_[0]0&&this.anchor_[1]');var b=a(".woocommerce-shipping-fields-wrapper");a(document.body).on("updated_checkout",function(c){var d=a(".shipping_method:checked").val();d||(d=a(".shipping_method option:selected").val());var e=a(".parent-toggler");if(e&&(a('input[name="ship_to_different_address"]:checked').length>0?e.hide():e.show()),d){d.search("yoast_wcseo_local_pickup_")>-1?b.hide():b.show()}})})},{}]},{},[1,2]); jQuery(function($){ 'use strict'; var o=$({}); $.subscribe=function(){o.on.apply(o, arguments);}; $.unsubscribe=function(){o.off.apply(o, arguments);}; $.publish=function(){o.trigger.apply(o, arguments);}; var DOM=(function(dom){ var dom=dom||{}; dom.body=$('body:eq(0)'); return dom; }(DOM)); var COOKIES=(function(cookies){ var cookies=cookies||{}; cookies.setItem=function(name, value, durationInDays){ var d=new Date(); d.setTime(d.getTime() +(durationInDays * 24 * 60 * 60 * 1000)); var expires='expires=' + d.toUTCString(); document.cookie=name + '=' + value + ';' + expires + ';path=/'; }; cookies.getItem=function(name){ var name=name + '=', decodedCookie=decodeURIComponent(document.cookie), ca=decodedCookie.split(';'); for(var i=0; i < ca.length; i++){ var c=ca[ i ]; while(c.charAt(0)==' '){ c=c.substring(1); } if(c.indexOf(name)==0){ return c.substring(name.length, c.length); }} return null; } cookies.deleteItem=function(name){ document.cookie=name + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;'; }; return cookies; }(COOKIES)); (function (){ }()); (function (){ $.subscribe('wptwa-widget-ready', function (){ var wptwa=DOM.body.find('.wptwa-container'), box=wptwa.find('.wptwa-box'), toggleBox=function(e){ box.toggleClass('show'); if(! COOKIES.getItem('wptwa')){ COOKIES.setItem('wptwa', 'toggled', 1); }}; $.subscribe('wptwa-toggle-box', toggleBox); }); }()); (function (){ $.subscribe('wptwa-widget-ready', function (){ var wptwaFlag=DOM.body.find('.wptwa-flag'), wptwa=DOM.body.find('.wptwa-container'), delayTime=parseInt(wptwa.data('delay-time')), inactiveTime=parseInt(wptwa.data('inactive-time')), scrollLength=parseInt(wptwa.data('scroll-length')), autoDisplayOnMobile=wptwa.data('auto-display-on-mobile'), box=wptwa.find('.wptwa-box'), handler=wptwa.find('.wptwa-handler'), close=wptwa.find('.wptwa-close'), autoShow ; if(! wptwa.length||! wptwaFlag.length){ return; } handler.add(close).on('click', function (){ $.publish('wptwa-toggle-box'); }); if('on'!==autoDisplayOnMobile&&window.getComputedStyle(wptwaFlag.get(0), ':after').content=='"mobile"'){ return; } if(delayTime > 0){ autoShow=setTimeout(function (){ if(! box.is('.show')&&! COOKIES.getItem('wptwa')){ $.publish('wptwa-toggle-box'); }}, delayTime * 1000); } var cb, executed=false, events='mousemove mousedown mouseup onkeydown onkeyup focus scroll', showAfterInactivity=function (){ clearTimeout(cb); if(! executed){ cb=setTimeout(function (){ if(! COOKIES.getItem('wptwa')&&! box.is('.show')){ $.publish('wptwa-toggle-box'); } $(document).off(events, showAfterInactivity); }, inactiveTime * 1000); }}; if(inactiveTime > 0){ $(document).on(events, showAfterInactivity); } var percentage=Math.abs(scrollLength) / 100, scrolling, timing=true, scrollHandler=function(){ scrolling=true; if(timing){ setTimeout(function (){ if($(window).scrollTop() >=($(document).height() - $(window).height()) * percentage){ if(! COOKIES.getItem('wptwa')&&! box.is('.show')){ $.publish('wptwa-toggle-box'); } $(window).off('scroll', scrollHandler); } timing=true; scrolling=false; }, 500); if(scrolling){ timing=false; }} } ; if(scrollLength > 0){ $(window).on('scroll', scrollHandler); }}); }()); (function (){ $.subscribe('wptwa-widget-ready', function (){ DOM.body.find('.wptwa-container .wptwa-face').each(function (){ var el=$(this), img=el.find('img'), noImage=true ; if(img.length){ var url=img.attr('src'), tester=new Image(); tester.src=url; tester.onerror=function (){ el.addClass('no-image'); };}else{ el.addClass('no-image'); }}); }); }()); (function (){ var alterURL=function (){ var wptwaAccounts=DOM.body.find('.wptwa-account'), wptwaFlag=DOM.body.find('.wptwa-flag') ; if(! wptwaFlag.length){ return; } if(window.getComputedStyle(wptwaFlag.get(0), ':after').content=='"desktop"'||window.getComputedStyle(wptwaFlag.get(0), ':after').content=='desktop'){ wptwaAccounts.each(function (){ var el=$(this), number=el.data('number'), text=el.data('auto-text') ; if(''===number){ return true; } el.attr('href', 'https://web.whatsapp.com/send?phone=' + number + '&text=' + text); }); }}; alterURL(); $.subscribe('wptwa-widget-ready', function (){ alterURL(); }); }()); (function (){ var data={ 'action': 'display_widget', 'when': Date.now() }; $.post(ajax_object.ajax_url, data, function(response){ if('no-show'===response){ return; } $(response).appendTo(DOM.body); setTimeout(function (){ $.publish('wptwa-widget-ready'); }, 100); }); }()); (function (){ }()); }); !function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){function u(t,e,o){var n,s="$()."+i+'("'+e+'")';return t.each(function(t,u){var h=a.data(u,i);if(!h)return void r(i+" not initialized. Cannot call methods, i.e. "+s);var d=h[e];if(!d||"_"==e.charAt(0))return void r(s+" is not a valid method");var l=d.apply(h,o);n=void 0===n?l:n}),void 0!==n?n:t}function h(t,e){t.each(function(t,o){var n=a.data(o,i);n?(n.option(e),n._init()):(n=new s(o,e),a.data(o,i,n))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=n.call(arguments,1);return u(this,t,e)}return h(this,t),this},o(a))}function o(t){!t||t&&t.bridget||(t.bridget=i)}var n=Array.prototype.slice,s=t.console,r="undefined"==typeof s?function(){}:function(t){s.error(t)};return o(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return o.indexOf(e)==-1&&o.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},o=i[t]=i[t]||{};return o[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return o!=-1&&i.splice(o,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var o=this._onceEvents&&this._onceEvents[t],n=0;n